<?php

class Application_Form_Motorcycle extends Application_Form_Vehicle
{
	public function __construct($options = null)
    {
        parent::__construct($options);
		$this->setName('motorcycle');
		

		$cylinder = new Zend_Form_Element_Text('cylinder');
		$cylinder->setLabel('Cylinder:')
		->setAttrib('placeholder', 'en cm³')
		->setRequired(true)
		->setFilters(array('StringTrim','StripTags'))
		->setValidators(array('NotEmpty'))
		->addValidator(new Zend_Validate_Digits());

		

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')
		->setLabel('Add');

		$elements = array( $cylinder, $submit);
		$this->addElements($elements);

		$this->setDecorators( array( array('ViewScript', array('viewScript' => 'forms/loginform.phtml'))));
	}
}